home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / TAWUG / TAWUG Disk No. 56 (SHK) / TAWUG56.shk / DISK.PROTECTION (.txt) < prev    next >
AppleWorks Document  |  1987-07-01  |  3KB  |  63 lines

  1. O=====|====|====|====|====|====|====|====|====|====|====|====|====|====|====|===
  2. COPY PROTECT 'YOUR' DISKS
  3. MARTIN PIERCEY
  4. Reprinted from: THE MAPLE ORCHARD'
  5.                 PO BOX 696, STATION B.
  6.                 WILLOWDALE, ONTARIO  M2K 2P9
  7. ?      Residing within DOS is the 'RWTS' (Read or Write a Track @
  8. >and Sector). When you initialize a disk, DOS calls the 'RWTS' =
  9. ;which writes the address and data marks for each track and A
  10. ?sector.  If you change the address or data marks in the 'RWTS' C
  11. Acore then any disk you INIT from this core will have the changed D
  12. Baddress and data marks and will be uncopyable (at least by normal 
  13. methods). 
  14. ?     The locations for DOS 3.3 are 47413 and 47262.  These are A
  15. ?only two of a number of locations.  The normal values at these C
  16. Aaddresses are 222.  When you change this byte, be sure to change A
  17. ?both locations to the same value.  Use a value between 160 and 
  18. Follow this routine:
  19.   1. BOOT NORMAL DOS 
  20.   2. LOAD YOUR 'HELLO' PROGRAM(
  21.   3. INSERT A BLANK DISK IN YOUR DRIVE
  22.   4. POKE 47414,(NEW NUMBER)
  23.   5. POKE 47262,(NEW NUMBER)(
  24.   6. INIT (NAME OF YOUR HELLO PROGRAM)
  25. ;     You now have a protected disk!  The normal APPLE copy D
  26. Bprograms will not work on this diskette.  To use it you must boot -
  27. this disk.  This will load the changed DOS.
  28. @     In order to 'LOAD' programs onto this disk you must change 0
  29. the two new locations that you POKE'd earlier.
  30. Follow these steps:
  31.  1. BOOT NORMAL DOS
  32.  2. LOAD YOUR PROGRAM
  33.  3. POKE 47413,(NEW NUMBER)
  34.  4. POKE 47262,(NEW NUMBER)(
  35.  5. INSERT THE PROTECTED DISK IN DRIVE
  36.  6. SAVE (PROGRAM NAME)
  37. ?     Now, transfer all your programs to the new copy-protected 
  38. disk.
  39. A     After you have transfered all you programs to the protected C
  40. Adisk, you need to consider one final point.  In order to get the D
  41. Bfull benefit of this method of copy protection, a special 'HELLO' C
  42. Aprogram should be used.  This program should set the RUN flag as >
  43. <well as lock out the RESET switch and 'CTRL-C', and then it 
  44. should RUN your program.
  45. An example (Insert these lines ahead of your 'HELLO' program.):
  46.  LINE 0 ONERR GOTO 1
  47.  LINE 1 POKE 214,128: POKE 1010,102&
  48.         POKE 1011,213: POKE 1012,112"
  49.         :PRINT CHR$(4)"RUN (YOUR
  50.         PROGRAM NAME)
  51. A     LINE 0 and 1 sets RUN command, locks out 'CTRL-C' and RESET $
  52. switch and auto runs your program.
  53. B     The final step for true copy protection...  Now you must add B
  54. @a line in from of your program to change the two locations back 
  55. to the original values.
  56.      LINE 0 POKE 47413,222 : POKE
  57.          47262,222
  58. B     LINE 0 changes DOS back to normal. If by chance someone were C
  59. Aable to stop your program, they would not be able to access your 
  60. disk!
  61. @     I trust these techniques are of some interest.  Be certain B
  62. to practice them using disks which do not contain valuable data!
  63.